﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter04
{
    public class Code02
    {
        public static void Begin()
        {
            {
                int myInteger = 5;
                goto myLabel;
                //myInteger += 10;
            myLabel:
                Console.WriteLine("myInteger = {0}", myInteger);
            }
            {
            start:
                int myInteger = 5;
                goto addVal;
            writeResult:
                Console.WriteLine("myInteger = {0}", myInteger);
                goto start;
            addVal:
                myInteger += 10;
                goto writeResult;
            }
        }
    }
}
